#!/usr/bin/env bash
find ./ -type f -regex '.*\.\(java\|xml\|js\|yml\|yaml\|properties\|json\|http\|sql\|conf\|ini\|md\)$' | grep -v git | grep -v idea | grep -v logs  | grep -v node_modules | grep -v target | xargs perl -pi -e "s/cccc6666.com/51shanjian.cn/g"
perl -pi -e 's/^git clone https:\/\/gitee/#git clone https:\/\/gitee/g' doc/vitepress/docs/public/cli.sh
perl -pi -e 's/^#git clone https:\/\/gitlab/git clone https:\/\/gitlab/g' doc/vitepress/docs/public/cli.sh
perl -pi -e 's/：域名环境暂时无法访问，先用方法2//g' doc/vitepress/docs/easy/index.md
perl -pi -e 's/：\[点击这里下载脚本\].*/：[点击这里下载脚本](\/cli.sh)/g' doc/vitepress/docs/easy/index.md
